import { useInitDataSingleton } from './shared';
import { BasXueYeChanPinFeiYongApi, BasXueYeChanPinFeiYongAllOutput } from '/@/api/bas/BasXueYeChanPinFeiYong';

const { list, initList: getBasXueYeChanPinFeiYongList } = useInitDataSingleton<BasXueYeChanPinFeiYongAllOutput>(BasXueYeChanPinFeiYongApi.all);

// 血液产品费用, 不常用资料, 按需加载
export { getBasXueYeChanPinFeiYongList };

// 根据id获取
export function getBasXueYeChanPinFeiYongMingCheng(id: number) {
	return list.value.find((item) => item.id == id)?.mingCheng ?? '';
}
